package com.dream.technology.service.impl;

import com.dream.technology.db.dao.RcCollarDataSettingMapper;
import com.dream.technology.db.entity.RcCollarDataSetting;
import com.dream.technology.db.entity.RcCollarDataSettingQuery;
import com.dream.technology.service.RcCollarDataSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 描述：获取数据的参数配置
 *
 * @author chen_q_i@163.com
 * 2018/12/26 : 15:36.
 * @version : 1.0
 */
@Service("rcCollarDataSettingService")
public class RcCollarDataSettingServiceImpl implements RcCollarDataSettingService {


    @Autowired
    RcCollarDataSettingMapper collarDataSettingMapper;
    @Override
    public List<RcCollarDataSetting> getParmasByServiceName(String name) {

        RcCollarDataSettingQuery query = new RcCollarDataSettingQuery();
        RcCollarDataSettingQuery.Criteria criteria = query.createCriteria();
        criteria.andServiceNameEqualTo(name);
        List<RcCollarDataSetting> rcCollarDataSettings = collarDataSettingMapper.selectByExample(query);


        return rcCollarDataSettings;
    }
}
